import { sign, login, logout } from "../../api/login.js";
import { verifyToken } from "../../utils/TokenCheck.js";

export default function loginRouter(router) {
  // 注册
  router.post("/sign", sign);
  // 登录
  router.post("/login", login);
  // 登出
  router.get("/logout", verifyToken, logout);
}
